import java.util.Random;

public class App {

    public static Random random = new Random();
    public static void main(String[] args) throws Exception {
        int randomNumber = random.nextInt(2);
        System.out.println("Random number between 0 and 1: " + randomNumber);
    }
}
